#!/bin/bash
# Copies the repository files to the working kernel directory
# This is used on a freshly untarred kernel

# 23 August 2002 - permute br-nf-bds and ebtables copy order

export FROM=/ebtables-cvs/ebtables2/
export TO=/usr/src/linux-2.4.20-pre5

mkdir -p $TO/net/bridge/netfilter
mkdir -p $TO/include/linux/netfilter_bridge
cp -r -f $FROM/kernel/linux/* $TO/
cp -r -f $FROM/br-nf-bds/linux/* $TO/

/bin/rm -r -f $TO/CVS
/bin/rm -r -f $TO/include/CVS
/bin/rm -r -f $TO/include/linux/CVS
/bin/rm -r -f $TO/include/linux/netfilter_bridge/CVS
/bin/rm -r -f $TO/net/CVS
/bin/rm -r -f $TO/net/bridge/CVS
/bin/rm -r -f $TO/net/bridge/netfilter/CVS
/bin/rm -r -f $TO/core/CVS
/bin/rm -r -f $TO/ipv4/CVS

